package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * Created by xiachao
 */

public class GetDeafultConponRequest {

    String momentId;
    double fullAmount;

    private GetDeafultConponRequest(Builder builder) {
        setMomentId(builder.momentId);
        setFullAmount(builder.fullAmount);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public String getMomentId() {
        return momentId;
    }

    public void setMomentId(String momentId) {
        this.momentId = momentId;
    }

    public double getFullAmount() {
        return fullAmount;
    }

    public void setFullAmount(double fullAmount) {
        this.fullAmount = fullAmount;
    }

    public static final class Builder {
        private String momentId;
        private double fullAmount;

        private Builder() {
        }

        public Builder momentId(String val) {
            momentId = val;
            return this;
        }

        public Builder fullAmount(double val) {
            fullAmount = val;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().findDeafultByMomentId(momentId,fullAmount);
        }
    }


}
